/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-10-30 08:53:59
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-10-30 09:34:24
 */
import request from '@/utils/request'
import store from '@/store/index'
const base = require('../../env/index')

// 夹带k_token
function addK_Token(data) {
    var token = {
        k_token: store.getters.k_token
    }
    Object.assign(data, token)
    return data
}

export function getGroup(data) {
    return request({
        url: base.question_url + '/api/v1/admin/zoom/infos',
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}

export function toRecycleBinFroup(data) {
    return request({
        url: base.question_url + '/api/v1/admin/zoom/delete/' + data.unid,
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}

export function toUseGroup(data) {
    return request({
        url: base.question_url + '/api/v1/admin/zoom/issue',
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}

export function getRecycleBinGroup(data) {
    return request({
        url: base.question_url + '/api/v1/admin/zoom/softinfos',
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}

export function recoverdelRecycleBinGroup(data) {
    return request({
        url: base.question_url + '/api/v1/admin/zoom/recoverdel/' + data.unid,
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}
